<?php

namespace App\Models\GameDB\Frag;

use Illuminate\Database\Eloquent\Model;
use App\Models\MainDB\Gift;

class Check extends Model
{
    public $connection = 'mysql_game';

    protected $table = 'lottery_frag_draw_check';

    protected $primaryKey = 'id';

    public $timestamps = true;

    public function relation()
    {
        return $this->morphTo();
    }

    public function gift()
    {
        return $this->hasOne(Gift::class, 'id', 'gift_id');
    }


}
